package com.wwz.feign;

import com.wwz.pojo.FileInfo;
import com.wwz.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("centre")
public interface FileClients {

    @GetMapping("/centre/file/getById/{id}")
    Result<FileInfo> getByDateId(@PathVariable("id") String id);

    @GetMapping("centre/file/list")
    Result<List<FileInfo>> fileList();
}
